# 设置源文件
chip_sources = files(
  'chip.cpp'
)

# 设置头文件目录
chip_inc = include_directories(
  '../../../haslib/inc',
  '.'
)

# 创建chip动态库
chip_lib = shared_library(
  'chip',
  chip_sources,
  include_directories: chip_inc,
  link_with: haslib_lib,
  install: true,
  install_dir: install_dir + 'opt/bmc/apps/devmon/drvlib/chip'
)

# 导出i2c库依赖
i2c_dep = declare_dependency(
  link_with: chip_lib,
  include_directories: chip_inc
)
